Skip to content

Fix failing neg/i16820 test on JDK < 15 #16976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

WojciechMazur
Copy link
Contributor

Fixes #16969

String.formatted is a method added in JDK 15. In Scala, we also define the extension methods with the same name. Because of that the code in the snippet failed in unexpected manner.

…ormatted` is a deprecated Scala extension method and a function with a the same was added to String in JDK15
@smarter smarter enabled auto-merge February 20, 2023 15:41
@smarter smarter merged commit e65f6a6 into scala:main Feb 20, 2023
@WojciechMazur WojciechMazur deleted the fix/nighlty-build-on-jdk8 branch March 14, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nightly Dotty workflow of 2023-02-20 failed
2 participants